package com.sunday.common.core.validation.annotation;

import com.sunday.common.core.enums.ErrorCodeEnum;

import java.lang.annotation.*;

@Inherited
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ErrorCodeAttribute {

    /**
     * A0001    用户端错误        一级宏观错误码
     */
    ErrorCodeEnum errorCodeEnum() default ErrorCodeEnum.A0_001;

}
